package com.kedacom.emptyproject.map.adapter

import android.support.v4.app.Fragment
import android.support.v4.app.FragmentManager
import android.support.v4.app.FragmentPagerAdapter

/**
 * @author GuanHaoran
 * @description:
 * @date :12/2/20 2:00 PM
 */
class MyFragmetnPageAdapter(val fm: FragmentManager, val fragmentList: List<Fragment>) :
    FragmentPagerAdapter(fm) {


    override fun getItem(p0: Int): Fragment {
        return fragmentList[p0]
    }

    override fun getCount(): Int {
        return fragmentList.size
    }
}